package me.jiatao.baselibrary.injection.component

import android.app.Activity
import android.content.Context
import com.trello.rxlifecycle3.LifecycleProvider
import dagger.Component
import me.jiatao.baselibrary.injection.module.ActivityModule
import me.jiatao.baselibrary.injection.module.LifecycleProviderModule
import me.jiatao.baselibrary.injection.scope.ActivityScope

/**
 * Activity级别Component
 */
@ActivityScope
@Component(
    dependencies = [AppComponent::class],
    modules = [ActivityModule::class, LifecycleProviderModule::class]
)
interface ActivityComponent {
    fun context(): Context
    fun activity(): Activity
    fun lifecycleProvider(): LifecycleProvider<*>
}
